<template>
	<view class="termOfService">
		<!-- #ifdef MP-WEIXIN -->
		<view class="termOfService_btn" @tap="toTermInfo(0)">用户协议</view>
		<view class="termOfService_btn" @tap="toTermInfo(1)">隐私政策</view>
		<view class="termOfService_btn" @tap="toTermInfo(2)">金豆充值服务协议</view>
		<!-- #endif -->
		<!-- #ifndef MP-WEIXIN -->
		<view class="termOfService_btn" @tap="toTermInfo(3)">用户协议</view>
		<view class="termOfService_btn" @tap="toTermInfo(4)">隐私政策</view>
		<view class="termOfService_btn" @tap="toTermInfo(5)">金豆充值服务协议</view>
		<!-- #endif -->
	</view>
</template>

<script setup>
	import { onReady } from '@dcloudio/uni-app'
	onReady(()=>{
		let loginProvider = uni.getStorageSync('loginProvider');
		uni.setNavigationBarTitle({
			title: '随时照服务条款'
		})
	})
	function toTermInfo(type) {
		uni.navigateTo({
			url: '/pages/my/termInfo?type=' + type
		})
	}
</script>

<style lang="less" scoped>
.termOfService {
	min-height: 100vh;
	box-sizing: border-box;
	background-color: #f5f5f5;
	padding: 32rpx;
}
.termOfService_btn {
	border-radius: 16rpx;
	background-color: #ffffff;
	margin-bottom: 32rpx;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 120rpx;
	font-size: 28rpx;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 40.5rpx;
	color: rgba(0, 0, 0, 1);
}
</style>
